﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Text;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;

using Rmlife.Config;

namespace Rmlife.Web.AutoUpdateManager
{
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    [WebServiceBinding(Name = "CatchSoftInfoSoap", Namespace = "http://www.rain-soft.com.cn/API/Rmlife.Web")]
    public class AutoUpdate : SoapHttpClientProtocol
    {
        public AutoUpdate()
        {
            this.Url = string.IsNullOrEmpty(BaseConfigs.GerUpdateServer.Trim()) ? "" : BaseConfigs.GerUpdateServer.Trim() + "/VMUpdate.asmx";
        }

        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.rain-soft.com.cn/API/Rmlife.Web/GetFile", RequestNamespace = "http://www.rain-soft.com.cn/API/Rmlife.Web/", ResponseNamespace = "http://www.rain-soft.com.cn/API/Rmlife.Web/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")]
        public byte[] GetFile(string dbtype, bool isrequired, string version, string filename)
        {
            object[] results = this.Invoke("GetFile", new object[] {
                        dbtype,
                        isrequired,
                        version,
                        filename});
            return ((byte[])(results[0]));
        }

        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.rain-soft.com.cn/API/Rmlife.Web/GetVersionList", RequestNamespace = "http://www.rain-soft.com.cn/API/Rmlife.Web/", ResponseNamespace = "http://www.rain-soft.com.cn/API/Rmlife.Web/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetVersionList()
        {
            object[] results = this.Invoke("GetVersionList", new object[0]);
            return ((string)(results[0]));
        }
    }
}
